﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using MODEL;

namespace BLL
{
    public class WorkManage
    {
        /// <summary>
        /// 查询考勤记录
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public static DataTable ChaXunClass( )
        {
            return DAL.WorkService.ChaXunClass();

        }
        /// <summary>
        /// 有条件的查询考勤记录
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public static DataTable ChaXunClassName(string name)
        {
            return DAL.WorkService.ChaXunClassName(name);
            
        }
        /// <summary>
        /// 打卡的方法
        /// </summary>
        /// <param name="work"></param>
        /// <returns></returns>
        public static int DaKa(Work work)
        {
            return DAL.WorkService.DaKa(work);
        }
        /// <summary>
        /// 添加考勤记录的方法
        /// </summary>
        /// <param name="work"></param>
        /// <returns></returns>
        public static int WorkAdd(Work work)
        {
            return DAL.WorkService.WorkAdd(work);
        }
        /// <summary>
        /// 修改考勤记录的方法
        /// </summary>
        /// <param name="work"></param>
        /// <returns></returns>
        public static int WorkUpdate(Work work)
        {
            return DAL.WorkService.WorkUpdate(work);
        }
        /// <summary>
        /// 删除考勤记录的方法
        /// </summary>
        /// <param name="work"></param>
        /// <returns></returns>
        public static int WorkDelete(Work work)
        {
            return DAL.WorkService.WorkDelete(work);
        }

    }
}
